package com.ccx.demo.service.Impl;

import com.ccx.demo.captcha.entity.ImgResult;
import com.ccx.demo.dao.CaptchaMapper;
import com.ccx.demo.service.CaptchaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CaptchaServiceImpl implements CaptchaService {

    @Autowired
    private CaptchaMapper captchaMapper;
    @Override
    public boolean addCaptcha(ImgResult imgResult) {
        return captchaMapper.addCaptcha(imgResult);
    }

    @Override
    public ImgResult QueryCaptcha(String code) {
        return captchaMapper.QueryCaptcha(code);
    }
}
